package com.zzyl.nursing.dto;

import cn.hutool.core.date.DateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel("预约Dto")
public class ReservationDto {
    @ApiModelProperty(value = "手机号", required = true)
    private String mobile;

    @ApiModelProperty(value = "预约人", required = true)
    private String name;

    @ApiModelProperty(value = "预约时间", required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private DateTime time;

    @ApiModelProperty(value = "预约类型", required = true)
    private String type;

    @ApiModelProperty(value = "家人姓名", required = true)
    private String visitor;

    @ApiModelProperty(value = "id", required = true)
    private Long id;

    @ApiModelProperty(value = "status", required = true)
    private Integer status;

    @ApiModelProperty(value = "创建时间", required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private DateTime createTime;

    @ApiModelProperty(value = "更新时间", required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private DateTime updateTime;

    @ApiModelProperty(value = "创建人", required = true)
    private String createUser;

    @ApiModelProperty(value = "更新人", required = true)
    private String updateUser;
}
